package com.dongdongshop.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dongdongshop.pojo.TbContent;
import com.dongdongshop.service.ContentService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
public class IndexController {
    @Reference
    private ContentService contentService;
    @RequestMapping(path = {"/","/login"})
    public String tologin(){
        return "login";
    }
    //跳转主页
    @RequestMapping(path = {"/index"})
    public String toIndex(){
        return "index";
    }

    @RequestMapping(path = {"/totrade"})
    public String totrade(){
        return "trade";
    }
}
